<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/WEB-INF/core/common/top.jsp" %>

<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/core/scripts/jquery.js"></script>
<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/core/scripts/jquery_form.js"></script>
<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/core/scripts/ajax_s.js"></script>

<script language="javascript">
   function addNewPramDataItem(){
      window.location='toAddResc.action?act=addInput&q_canModify=${q_canModify}&q_typeCode=${q_typeCode}'+'&systime=' + (new Date()).getTime();
   }
</script>

<body style="overflow-x:hidden;overflow-y:auto;">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- 
  <@message id="messageId"  colspan="3" />
   -->
  <tr>
    <td width="8" height="27"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
    <td width="99%" align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name="资源维护"/></td>
    <td width="8"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
  </tr>
  <tr>
    <td colspan="3" class="biaoge">	
    
     <table width="100%" border="0" cellspacing="0" cellpadding="0" />
          <tr>
              <td height="25" align="left" valign="top">
                    <center></center>
				 	<input name="button" type="button" class="btn" onclick="submit_ajax('${pageContext.request.contextPath}/system/toAddResc.action','mainframe')" value="<s:text name='添加资源' />"/>  
				    <center></center>			  
		      </td>
          </tr>
      </table>
      <table id="content" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A6A6A6">
        <tr bgcolor="#C7D6EA">
          <td width="40" height="20" align="center" class="table_head"><s:text name="parmData.id" /></td>
          <td align="center" class="table_head" ><s:text name="parmData.code" /></td>
          <td align="center" bgcolor="#C7D6EA" class="table_head"><s:text name="parmData.name" /></td>
          <s:if test="parmDesc.extFld1Valid" >
          <td align="center" bgcolor="#C7D6EA" class="table_head">${parmDesc.extFld1Title}</td>  
          </s:if>
          <s:if test="parmDesc.extFld2Valid">
          <td align="center" bgcolor="#C7D6EA" class="table_head">11${parmDesc.extFld2Title}</td>
          </s:if>
          <td width="60" align="center" class="table_head"><s:text name="parmData.status" /></td>
          <td width="60" align="center" class="table_head"><s:text name="parmData.sortNum" /></td>
          <s:if test="parmDesc.modifying">
          <td width="70" align="center" class="table_head"><s:text name="parmData.operate" /></td>
          </s:if>
        </tr>
 		<s:iterator value="pageInfo.searchResult" var="columns">
	        <tr>
	          <td height="20" align="center">${(pageInfo.currentPageNo-1)*pageInfo.pageSize+param_index+1}</td>
	          <td align="center">${columns[0]}</td>
	          <td align="center">${columns[1]}</td>
	          
	          <s:if test="parmDesc.extFld1Valid">
	          <td align="center">>${columns[2]}</td>
	          </s:if>
	          <s:if test="parmDesc.extFld2Valid">
	          <td align="center">>${columns[3]}</td>
	          </s:if>
	          <td align="center"><s:if test="#columns[4]==1"><s:text name="parmData.valid" /></s:if><s:else><s:text name="parmData.invalid" /></s:else></td>
	          <td align="center"><s:property value="4"/></td>
	          
		          <td align="center">
		          	<table width="50" height="16" border="0" cellpadding="0" cellspacing="0">
		                <tr>
			                <td width="22" align="right"><a href="rescDelete.action?act=delete&paramDataId=<s:property value='0'/>&q_canModify=${q_canModify}&q_typeCode=${q_typeCode}" onclick="if (!confirm('<s:text name="message.delete.confirm" />')) return false;"><img src="${ctx}/core/images/del.gif" name="icon_074" width="16" height="16" border="0" id="icon_074" style="CURSOR: hand" title="<s:text name='parmData.delete' />"/></a></td>
			                <td width="22" align="right"><a href="paramData.action?act=editInput&paramDataId=${columns[0]}&q_canModify=${q_canModify}&q_typeCode=${q_typeCode}"><img src="${ctx}/core/images/edit.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="<s:text name='parmData.modify' />"/></a></td>
		                </tr>
		          	</table>
		          </td>
	         
	        </tr>
	    </s:iterator>
	    
      </table>
      
      <!-- 分页 -->	  
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr><td>${pagination}</td></tr>
          </table>
          
      <!-- 分页结束 -->	
    </td></tr></table>
</body>

<script>
	tables('content',null);
</script>